<template>
   <div>
        <div class="user_list" v-if="list.length>0">
                <div class="user_item" v-for="item in list" :key="item.id">
                    <a :href="'#/managedetail?id='+item.id+'&name=实绩管理&url=#/manage'">
                        <div class="user_img">
                            <img :src="item.image" alt="">
                        </div>
                        <div class="user_info">
                            <div class="user_title">
                                <div class="user_name">{{item.title}}</div>
                                <div class="type">{{item.identity}}</div>
                            </div>
                            <div class="yard">
                                <div class="y_name">{{item.college}}</div>
                                <div class="work">{{item.position}}</div>
                            </div>
                        </div>
                    </a>
                </div>
        </div>
        <el-empty v-else></el-empty>
   </div>
 </template>
 <script>
 export default {
     name:'commonList',
     props:{
         type:{
             type:Number,
             default:1
         }
     },
     data(){
         return{
             list:[]
         }
     },
     mounted(){
         this.getdata()
     },
     methods:{
        getdata(){
            this.$api.post('getCpcList',{
                "sort":"sort",
                "limit":10 
            }).then(res=>{
                this.list = res.data.list
            })
        }
     }
 }
 </script>
 <style lang="scss" scoped>
     @import  '@/assets/css/common.scss';
 </style>